<?php

namespace app\index\controller;

use think\Controller;
use think\Cache;
use app\index\model\User;

class Base extends Controller
{
    public function _initialize()
    {	
        	$id = input('id');
            $user = new User;
            $res = User::where(['id'=>$id])->value('updated_at');            
            $update = strtotime($res);
            $time = strtotime(date('Y-m-d:H:i:s'));
            if($res !== "" && $res > $time ){
                    $status = "succ";
                    $this->status = $status; 

                }else{   
                   $status = "error";
                   $this->status = $status;                      
                }
           
           
        
       
    }
}
